
CFLAGS = -c -g -Wall
#GL_INCLUDE    = -I/usr/include/GL
GL_INCLUDE    = -I/usr/include/SDL
#GL_LIBDIR    = -L. -L/usr/X11R6/lib
#GL_LIBRARIES = -lglut -lGL -lm -lGLU -lXmu -lXext -lXi -lX11
#GL_LIBRARIES =  -lglut -lm $(shell sdl-config --libs) -lGL -lGLU
GL_LIBRARIES =  -lglut -lm -lGL -lGLU -lSDL

#gcc -I /usr/include/SDL -o test test.cpp -lSDL
#g++ -o sdl-test ./sdl-test.cpp `sdl-config --libs --cflags`


CC=g++
OS = "unknown"
SRC = SOURCES
OBJ = OBJS

job: clean TP4

TP4: main.o particle.o tissu.o freeflycamera.o
	$(CC)  main.o particle.o tissu.o freeflycamera.o -o $@ $(GL_INCLUDE) $(GL_LIBRARIES)
main.o : main.cpp
	$(CC)  $(CFLAGS) $<
tissu.o : tissu.cpp
	$(CC) $(CFLAGS) $<
particle.o : particle.cpp
	$(CC) $(CFLAGS) $<
	
freeflycamera.o : freeflycamera.cpp
	$(CC) $(CFLAGS) $<

clean:
	rm -rf ./*.o
